static final Border sharedRaisedBevel = new BevelBorder(0);
static final Border sharedLoweredBevel = new BevelBorder(1);
static final Border sharedEtchedBorder = new EtchedBorder();
static final Border emptyBorder = new EmptyBorder(0, 0, 0, 0);
private BorderFactory() {
}
public static Border createBevelBorder(int type) {
return createSharedBevel(type);
}
public static Border createBevelBorder(int type, Color highlight, Color shadow) {
return new BevelBorder(type, highlight.darker(), highlight, shadow, shadow.brighter());
}
public static Border createBevelBorder(int type, Color highlightOuter, Color highlightInner, Color shadowOuter, Color shadowInner) {
return new BevelBorder(type, highlightOuter, highlightInner, shadowOuter, shadowInner);
}
public static CompoundBorder createCompoundBorder() {
return new CompoundBorder();
}
public static CompoundBorder createCompoundBorder(Border outsideBorder, Border insideBorder) {
return new CompoundBorder(outsideBorder, insideBorder);
}
public static Border createEmptyBorder() {
return emptyBorder;
}
public static Border createEmptyBorder(int top, int left, int bottom, int right) {
return new EmptyBorder(top, left, bottom, right);
}
public static Border createEtchedBorder() {
return sharedEtchedBorder;
}
public static Border createEtchedBorder(Color highlight, Color shadow) {
return new EtchedBorder(highlight, shadow);
}
public static Border createLineBorder(Color color) {
return new LineBorder(color, 1);
}
public static Border createLineBorder(Color color, int thickness) {
return new LineBorder(color, thickness);
}
public static Border createLoweredBevelBorder() {
return createSharedBevel(1);
}
public static MatteBorder createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon) {
return new MatteBorder(top, left, bottom, right, tileIcon);
}
public static MatteBorder createMatteBorder(int top, int left, int bottom, int right, Color color) {
return new MatteBorder(top, left, bottom, right, color);
}
public static Border createRaisedBevelBorder() {
return createSharedBevel(0);
}
static Border createSharedBevel(int type) {
if (type == 0) {
return sharedRaisedBevel;
} else {
return type == 1 ? sharedLoweredBevel : null;
}
}
public static TitledBorder createTitledBorder(Border border) {
return new TitledBorder(border);
}
public static TitledBorder createTitledBorder(Border border, String title) {
return new TitledBorder(border, title);
}
public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition) {
return new TitledBorder(border, title, titleJustification, titlePosition);
}
public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont) {
return new TitledBorder(border, title, titleJustification, titlePosition, titleFont);
}
public static TitledBorder createTitledBorder(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor) {
return new TitledBorder(border, title, titleJustification, titlePosition, titleFont, titleColor);
}
public static TitledBorder createTitledBorder(String title) {